package com.jxx.util;


import com.jxx.pojo.Admin;

public class AdminThreadLocal {
    private static ThreadLocal<Admin> userThreadLocal = new ThreadLocal<>();

    public static void set(Admin admin){
        userThreadLocal.set(admin);
    }

    public static Admin get(){
        return userThreadLocal.get();
    }

    public static void remove(){
        userThreadLocal.remove();
    }
}
